# -*- coding: utf-8 -*-

import time
from tqdm import tqdm


N = 100
with tqdm(total=100, ncols=50) as _tqdm:
# with tqdm(total=100) as _tqdm:
    for k in range(N):
        _tqdm.set_description(f'{k}/ {N}')
        time.sleep(0.1)
        _tqdm.update(1)